package com.war.service.safeManage;

import com.war.pojo.system.User;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

public interface UserService {
    //登录
    String login(User user, HttpServletRequest request);

    //注销登录
    String logOut(HttpServletRequest request);

    //验证码邮件发送
    HashMap<String,Object> sendCode(String email, HttpServletRequest request);

    //检查是否为登录状态
    Boolean checkLogin(HttpServletRequest request);

    //检查用户身份
    String checkIdentity(HttpServletRequest request);

    //select用户信息
    HashMap<String, Object> select(User user);

    //修改用户身份
    String updateIdentity(User user);

    //删除用户
    String delUser(User user);

    //查找用户
    User selectByTel(User user);

    //添加用户
    String addUser(User user);

    //修改用户信息
    String updateUser(User user, HttpServletRequest request);
}
